let api = [];
const apiDocListSize = 1
api.push({
    name: 'default',
    order: '1',
    list: []
})
api[0].list.push({
    alias: 'ErrorController',
    order: '1',
    link: '',
    desc: '',
    list: []
})
api[0].list[0].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/',
    desc: '',
});
api[0].list[0].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/404',
    desc: '',
});
api[0].list[0].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/500',
    desc: '',
});
api[0].list.push({
    alias: 'DefectiveProductController',
    order: '2',
    link: '',
    desc: '',
    list: []
})
api[0].list[1].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/defectiveProduct/',
    desc: '',
});
api[0].list[1].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/defectiveProduct/exportExcel',
    desc: '',
});
api[0].list[1].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/defectiveProduct/updated',
    desc: '',
});
api[0].list[1].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/defectiveProduct/save',
    desc: '',
});
api[0].list[1].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/defectiveProduct/saveByGoods',
    desc: '',
});
api[0].list[1].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/defectiveProduct/selectDefectiveProductById/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'DepotController',
    order: '3',
    link: '',
    desc: '',
    list: []
})
api[0].list[2].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depot/',
    desc: '',
});
api[0].list[2].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depot/list',
    desc: '',
});
api[0].list[2].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depot/listBySysId',
    desc: '',
});
api[0].list[2].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depot/listCommityBySysId',
    desc: '',
});
api[0].list[2].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depot/save',
    desc: '',
});
api[0].list[2].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depot/updateStatus',
    desc: '',
});
api[0].list[2].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depot/deptTypeList',
    desc: '',
});
api[0].list[2].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depot/deptCpDepot',
    desc: '',
});
api[0].list.push({
    alias: 'DepotExtraController',
    order: '4',
    link: '仓库扩展表',
    desc: '仓库扩展表',
    list: []
})
api[0].list[3].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depotExtra/{depotId}/{productId}',
    desc: '',
});
api[0].list[3].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depotExtra/{productId}',
    desc: '通过产品查询仓库编码',
});
api[0].list[3].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depotExtra/saveOrUpdate',
    desc: '',
});
api[0].list[3].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depotExtra/del/{id}',
    desc: '',
});
api[0].list[3].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depotExtra/clearsDepotSn/{depotId}/{productId}',
    desc: '',
});
api[0].list[3].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/depotExtra/depotSnImport',
    desc: '',
});
api[0].list.push({
    alias: 'GoodsTransBillController',
    order: '5',
    link: '',
    desc: '',
    list: []
})
api[0].list[4].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/',
    desc: '',
});
api[0].list[4].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/getGoodsTransBillById/{id}',
    desc: '',
});
api[0].list[4].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/excel/{id}',
    desc: '',
});
api[0].list[4].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/initAdd',
    desc: '',
});
api[0].list[4].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/save',
    desc: '',
});
api[0].list[4].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/updateRemark',
    desc: '',
});
api[0].list[4].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/updateGoodsInfo',
    desc: '',
});
api[0].list[4].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/chgTransStatus',
    desc: '',
});
api[0].list[4].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/transBillGenerate',
    desc: '',
});
api[0].list[4].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/del/{id}',
    desc: '',
});
api[0].list[4].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/test',
    desc: '',
});
api[0].list[4].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBill/updateBillStatus/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'GoodsTransBillOperationController',
    order: '6',
    link: '',
    desc: '',
    list: []
})
api[0].list[5].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBillOperation/getOperationByTransBillId/{transBillId}',
    desc: '',
});
api[0].list[5].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBillOperation/save',
    desc: '',
});
api[0].list.push({
    alias: 'GoodsTransBillProductController',
    order: '7',
    link: '',
    desc: '',
    list: []
})
api[0].list[6].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBillProduct/getListByGoodsTransId/{goodsTransId}',
    desc: '',
});
api[0].list[6].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBillProduct/del/{id}',
    desc: '',
});
api[0].list[6].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/goodsTransBillProduct/update',
    desc: '',
});
api[0].list.push({
    alias: 'InDepotBillController',
    order: '8',
    link: '',
    desc: '',
    list: []
})
api[0].list[7].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/',
    desc: '',
});
api[0].list[7].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/initAdd',
    desc: '',
});
api[0].list[7].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/getInDepotBillById/{id}',
    desc: '',
});
api[0].list[7].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/excel/{id}',
    desc: '',
});
api[0].list[7].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/getInDepotBillDetilList',
    desc: '',
});
api[0].list[7].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/save',
    desc: '',
});
api[0].list[7].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/saveAndungrad',
    desc: '',
});
api[0].list[7].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/audit',
    desc: '',
});
api[0].list[7].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/delAll/{id}',
    desc: '',
});
api[0].list[7].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBill/importExcal',
    desc: '',
});
api[0].list.push({
    alias: 'InDepotBillProductController',
    order: '9',
    link: '',
    desc: '',
    list: []
})
api[0].list[8].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBillProduct/list/{inDepotId}',
    desc: '',
});
api[0].list[8].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBillProduct/inDepotChgNum',
    desc: '',
});
api[0].list[8].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/inDepotBillProduct/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'OutDepotBillController',
    order: '10',
    link: '',
    desc: '',
    list: []
})
api[0].list[9].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBill/',
    desc: '',
});
api[0].list[9].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBill/initAdd',
    desc: '',
});
api[0].list[9].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBill/getOutDepotBillById/{id}',
    desc: '',
});
api[0].list[9].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBill/excel/{id}',
    desc: '',
});
api[0].list[9].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBill/getOutDepotBillDetilList',
    desc: '',
});
api[0].list[9].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBill/save',
    desc: '',
});
api[0].list[9].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBill/saveAndAuit',
    desc: '',
});
api[0].list[9].list.push({
    order: '8',
    deprecated: 'true',
    url: 'http://127.0.0.1:7500/outDepotBill/outDepotChgIsFinish',
    desc: '',
});
api[0].list[9].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBill/delAll/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'OutDepotBillProductController',
    order: '11',
    link: '',
    desc: '',
    list: []
})
api[0].list[10].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBillProduct/list/{inDepotId}',
    desc: '',
});
api[0].list[10].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBillProduct/outDepotChgNum',
    desc: '',
});
api[0].list[10].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/outDepotBillProduct/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'ProductStockController',
    order: '12',
    link: '',
    desc: '',
    list: []
})
api[0].list[11].list.push({
    order: '1',
    deprecated: 'true',
    url: 'http://127.0.0.1:7500/productStock/',
    desc: '二期项目已经找到替代办法，',
});
api[0].list[11].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/newList',
    desc: '',
});
api[0].list[11].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/exportExcelLeve2',
    desc: '二期项目库存列表的导出',
});
api[0].list[11].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/exportExcel',
    desc: '',
});
api[0].list[11].list.push({
    order: '5',
    deprecated: 'true',
    url: 'http://127.0.0.1:7500/productStock/getStoreHouse',
    desc: '二期不在需要库位的单独查询',
});
api[0].list[11].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/selectListLevel2',
    desc: '二期查询库存的内容',
});
api[0].list[11].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/selectList',
    desc: '',
});
api[0].list[11].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/save',
    desc: '',
});
api[0].list[11].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/depotType',
    desc: '',
});
api[0].list[11].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/inOutStock',
    desc: '',
});
api[0].list[11].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/importExcal/{depotId}',
    desc: '',
});
api[0].list[11].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/initStockCode/{depotId}',
    desc: '',
});
api[0].list[11].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/productStock/testList',
    desc: '',
});
api[0].list.push({
    alias: 'ProductStockDetailsController',
    order: '13',
    link: '&lt;p&gt;_前端控制器&lt;/p&gt;',
    desc: '&lt;p&gt;前端控制器&lt;/p&gt;',
    list: []
})
api[0].list.push({
    alias: 'SealMatchRuleController',
    order: '14',
    link: '',
    desc: '',
    list: []
})
api[0].list[13].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/sealMatchRule/',
    desc: '',
});
api[0].list[13].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/sealMatchRule/save',
    desc: '',
});
api[0].list[13].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/sealMatchRule/delAll/{ids}',
    desc: '',
});
api[0].list.push({
    alias: 'StockCheckController',
    order: '15',
    link: '',
    desc: '',
    list: []
})
api[0].list[14].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/',
    desc: '',
});
api[0].list[14].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/save',
    desc: '',
});
api[0].list[14].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/finish/{stockCheckDtoId}',
    desc: '',
});
api[0].list[14].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/mergeStockCheck/{stockCheckDtoId}',
    desc: '',
});
api[0].list[14].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/finishDepot/{stockCheckDtoId}',
    desc: '',
});
api[0].list[14].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/publish/{id}',
    desc: '',
});
api[0].list[14].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/delAll/{ids}',
    desc: '',
});
api[0].list[14].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/delstockCheck/{id}',
    desc: '',
});
api[0].list[14].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/selectDetails/{id}',
    desc: '',
});
api[0].list[14].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/stockCheck/selectSpecificDetails',
    desc: '',
});
api[0].list.push({
    alias: 'FrontAppDefectiveProductController',
    order: '16',
    link: '',
    desc: '',
    list: []
})
api[0].list[15].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/defectiveProduct/save',
    desc: '',
});
api[0].list[15].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/defectiveProduct/selectDefectiveProductById/{id}',
    desc: '',
});
api[0].list[15].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/defectiveProduct/selectDefectiveProductList',
    desc: '',
});
api[0].list[15].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/defectiveProduct/testsave',
    desc: '',
});
api[0].list.push({
    alias: 'FrontAppStockCheckController',
    order: '17',
    link: '',
    desc: '',
    list: []
})
api[0].list[16].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/stockCheck/',
    desc: '',
});
api[0].list[16].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/stockCheck/finish/{id}',
    desc: '',
});
api[0].list[16].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/stockCheck/specificDetails',
    desc: '',
});
api[0].list[16].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/stockCheck/stockCheckGoods',
    desc: '',
});
api[0].list[16].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/stockCheck/updateSpecificDetails',
    desc: '',
});
api[0].list[16].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/stockCheck/delSpecificDetails',
    desc: '',
});
api[0].list[16].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/stockCheck/scanCheckGoods/{checkId}/{productSn}',
    desc: '',
});
api[0].list.push({
    alias: 'FrontDepotController',
    order: '18',
    link: '',
    desc: '',
    list: []
})
api[0].list[17].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/depotRPC/getEntityById',
    desc: '',
});
api[0].list[17].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/depotRPC/getListByIdArray',
    desc: '',
});
api[0].list[17].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/depotRPC/getAll',
    desc: '',
});
api[0].list.push({
    alias: 'FrontInDepotBillController',
    order: '19',
    link: '',
    desc: '',
    list: []
})
api[0].list[18].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/inDepotBill/save',
    desc: '',
});
api[0].list[18].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/inDepotBill/appSave',
    desc: '',
});
api[0].list[18].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/inDepotBill/appStoreHouse',
    desc: '',
});
api[0].list[18].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/inDepotBill/matchDepot',
    desc: '用于前端接受扫描匹配仓库库存。',
});
api[0].list[18].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/inDepotBill/creatStockSn/{orderId}/{serialNumber}',
    desc: '用于前端生成库存编码，没有库位的库存编码订单服务失败，返回1，CMS服务失败，返回2，库位不符合要求返回3用于前端提示那个服务失败，',
});
api[0].list[18].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/inDepotBill/test/{orderId}/{serialNumber}/{stockSn}',
    desc: '',
});
api[0].list.push({
    alias: 'AppDefectiveProductRPCController',
    order: '20',
    link: '',
    desc: '',
    list: []
})
api[0].list[19].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/appdefective/save',
    desc: '',
});
api[0].list.push({
    alias: 'DepotRpcController',
    order: '21',
    link: '',
    desc: '',
    list: []
})
api[0].list[20].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/depotrpc/getBycode',
    desc: '',
});
api[0].list[20].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/depotrpc/getDepotId',
    desc: '',
});
api[0].list[20].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/depotrpc/delByCondition',
    desc: '',
});
api[0].list[20].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/depotrpc/getById',
    desc: '',
});
api[0].list.push({
    alias: 'GoodsTransBillRpcController',
    order: '22',
    link: '',
    desc: '',
    list: []
})
api[0].list[21].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/goodstransbill/save',
    desc: '',
});
api[0].list.push({
    alias: 'ProductStockRpcController',
    order: '23',
    link: '',
    desc: '',
    list: []
})
api[0].list[22].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/productStock/getByGoodsInfo',
    desc: '',
});
api[0].list[22].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/productStock/inOutStock',
    desc: '',
});
api[0].list[22].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/productStock/getAllByDepotId',
    desc: '',
});
api[0].list[22].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/productStock/getAllByDepotId2',
    desc: '项目二期，根据库存ID获取库存详情',
});
api[0].list[22].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/productStock/lockDepot',
    desc: '项目二期，锁定库存',
});
api[0].list[22].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/productStock/updateSynData',
    desc: '用于将库存数据同步到库存统计表中（wms_product_stock_report）',
});
api[0].list[22].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/productStock/delSyncErpData',
    desc: '用于同步前删除数据',
});
api[0].list[22].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/productStock/erpSynData',
    desc: '用于将ERP商品库存数据同步到库存中（ERP同步专用）',
});
api[0].list.push({
    alias: 'SealMathRuleRpcController',
    order: '24',
    link: '',
    desc: '',
    list: []
})
api[0].list[23].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/sealMathRule/getById',
    desc: '',
});
api[0].list.push({
    alias: 'error',
    order: '25',
    link: 'error_code_list',
    desc: '错误码列表',
    list: []
})
api[0].list.push({
    alias: 'dict',
    order: '26',
    link: 'dict_list',
    desc: '数据字典',
    list: []
})
api[0].list[25].list.push({
    order: '1',
    deprecated: 'false',
    url: '',
    desc: 'http状态码字典',
});
document.onkeydown = keyDownSearch;
function keyDownSearch(e) {
    const theEvent = e;
    const code = theEvent.keyCode || theEvent.which || theEvent.charCode;
    if (code == 13) {
        const search = document.getElementById('search');
        const searchValue = search.value;
        let searchGroup = [];
        for (let i = 0; i < api.length; i++) {

            let apiGroup = api[i];

            let searchArr = [];
            for (let i = 0; i < apiGroup.list.length; i++) {
                let apiData = apiGroup.list[i];
                const desc = apiData.desc;
                if (desc.indexOf(searchValue) > -1) {
                    searchArr.push({
                        order: apiData.order,
                        desc: apiData.desc,
                        link: apiData.link,
                        list: apiData.list
                    });
                } else {
                    let methodList = apiData.list || [];
                    let methodListTemp = [];
                    for (let j = 0; j < methodList.length; j++) {
                        const methodData = methodList[j];
                        const methodDesc = methodData.desc;
                        if (methodDesc.indexOf(searchValue) > -1) {
                            methodListTemp.push(methodData);
                            break;
                        }
                    }
                    if (methodListTemp.length > 0) {
                        const data = {
                            order: apiData.order,
                            desc: apiData.desc,
                            link: apiData.link,
                            list: methodListTemp
                        };
                        searchArr.push(data);
                    }
                }
            }
            if (apiGroup.name.indexOf(searchValue) > -1) {
                searchGroup.push({
                    name: apiGroup.name,
                    order: apiGroup.order,
                    list: searchArr
                });
                continue;
            }
            if (searchArr.length === 0) {
                continue;
            }
            searchGroup.push({
                name: apiGroup.name,
                order: apiGroup.order,
                list: searchArr
            });
        }
        let html;
        if (searchValue == '') {
            const liClass = "";
            const display = "display: none";
            html = buildAccordion(api,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        } else {
            const liClass = "open";
            const display = "display: block";
            html = buildAccordion(searchGroup,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        }
        const Accordion = function (el, multiple) {
            this.el = el || {};
            this.multiple = multiple || false;
            const links = this.el.find('.dd');
            links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown);
        };
        Accordion.prototype.dropdown = function (e) {
            const $el = e.data.el;
            $this = $(this), $next = $this.next();
            $next.slideToggle();
            $this.parent().toggleClass('open');
            if (!e.data.multiple) {
                $el.find('.submenu').not($next).slideUp("20").parent().removeClass('open');
            }
        };
        new Accordion($('#accordion'), false);
    }
}

function buildAccordion(apiGroups, liClass, display) {
    let html = "";
    let doc;
    if (apiGroups.length > 0) {
         if (apiDocListSize == 1) {
            let apiData = apiGroups[0].list;
            for (let j = 0; j < apiData.length; j++) {
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_' + apiData[j].link + '">' + apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                html += '<ul class="sectlevel2" style="'+display+'">';
                doc = apiData[j].list;
                for (let m = 0; m < doc.length; m++) {
                    let spanString;
                    if (doc[m].deprecated == 'true') {
                        spanString='<span class="line-through">';
                    } else {
                        spanString='<span>';
                    }
                    html += '<li><a href="#_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].href + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                }
                html += '</ul>';
                html += '</li>';
            }
        } else {
            for (let i = 0; i < apiGroups.length; i++) {
                let apiGroup = apiGroups[i];
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_' + apiGroup.name + '">' + apiGroup.order + '.&nbsp;' + apiGroup.name + '</a>';
                html += '<ul class="sectlevel1">';

                let apiData = apiGroup.list;
                for (let j = 0; j < apiData.length; j++) {
                    html += '<li class="'+liClass+'">';
                    html += '<a class="dd" href="#_' + apiData[j].link + '">' +apiGroup.order+'.'+ apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                    html += '<ul class="sectlevel2" style="'+display+'">';
                    doc = apiData[j].list;
                    for (let m = 0; m < doc.length; m++) {
                       let spanString;
                       if (doc[m].deprecated == 'true') {
                           spanString='<span class="line-through">';
                       } else {
                           spanString='<span>';
                       }
                       html += '<li><a href="#_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].href + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                   }
                    html += '</ul>';
                    html += '</li>';
                }

                html += '</ul>';
                html += '</li>';
            }
        }
    }
    return html;
}